<!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <link rel="stylesheet" href="/digvcs.css" type="text/css" media="screen" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
        <script type="text/javascript" src="jquery.url.js"></script>
        <script type="text/javascript"> 
            update_links = function() {
                $('#content a').click(function(){
                    load_state($(this).attr('href') + '?type=html')
                    return false;
                })
            }
            
            load_page = function(url) { 
                $.ajax({
                    url: url + "?type=html",
                    cache: true,
                    success: function(html){
                        $('#content').html(html)
                        update_links()                        
                    }
                });
            }

            load_state = function(url) {
                load_page(url)
                url = $.url.setUrl(url).attr('path')
                $('h1').html(url)
                window.location.hash = url
                document.title = url + ' - DigVCS'
            }

            $(function() {
                load_state(window.location.hash.substr(1))
            });
        </script>
    </head>
    <body>
        <h1></h1>
        <div style="padding: 10px;">
            <a href="{{ url('index') }}">index</a><br/>
            <a href="{{ url('log_index') }}">log_index</a><br/>
            <a href="{{ url('log_repository', repo=1) }}">log_repository</a><br/>
            <a href="{{ url('log_revision', repo=1, rev=2) }}">log_revision</a><br/>
        </div>
        <div id="content"></div>
    </body>
</html>